import { Request, Response, NextFunction } from 'express';
const whiteList = ['/category/list'];

export function IndexMiddleWare(
  req: Request,
  res: Response,
  next: NextFunction,
) {
  console.log('全局中间件');

  // if (whiteList.includes(req.originalUrl)) {
  //   next();
  // } else {
  //   res.send('全局中间件拦截了');
  // }
  next();
}
